<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<h:form id="form_identification">
	<h:panelGrid columns="2">
		<h:outputText value="#{msg.input_mail}" />
		<h:inputText id="input_mail" value="#{clientBean.mail}"
			required="true" requiredMessage="#{msg.input_mail_required}"
			maxlength="30" size="30">
			<f:validator validatorId="mailValidation" />
		</h:inputText>

		<h:outputText value="#{msg.input_motdepasse}" />
		<h:inputSecret id="input_motdepasse" value="#{clientBean.motdepasse}"
			required="true" requiredMessage="#{msg.input_motdepasse_required}"
			maxlength="10" size="10" />

		<f:facet name="footer">
			<h:commandLink id="btn_identification" action="#{clientBean.login}"
				value="#{msg.button_identification}" />
		</f:facet>
	</h:panelGrid>
</h:form>
<rich:simpleTogglePanel switchType="client" opened="false"
	label="Mot de passe perdu ?">
	<h:outputText
		value="Saisissez votre identifiant de connexion (email) :" />
	<jsp:include flush="true" page="form_lostPassword.jsp" />
</rich:simpleTogglePanel>
